
export default class RequestMap {

    private _Map: { GET, POST };


    constructor() {
        this._Map = {
            GET: [],
            POST: []
        }
    }

    addRequestMap(method: string, path: string, params: any[], fn: string, cls: any) {
        this._Map[method].push({ path: path, params: params, method: fn, module: cls });
    }

    getGetList() {
        return this._Map.GET;
    }

    getPostList() {
        return this._Map.POST;
    }
}